package dao;

import java.sql.SQLException;
import java.util.List;

import javax.naming.NamingException;

import org.eclipse.jdt.annotation.NonNull;

import bean.Group;

public interface GroupDAO {

    List<Group> select(int accountId) throws SQLException, NamingException;

    Group selectById(@NonNull Group temporary) throws SQLException, NamingException;

    boolean insert(@NonNull Group temporary) throws SQLException, NamingException;

    boolean updateById(@NonNull Group temporary) throws SQLException, NamingException;

    boolean deleteById(@NonNull ContactDAO contactDAO, @NonNull Group temporary) throws SQLException, NamingException;

}